
body{
    background-color: #f3f3f3;
}
// 顶部导航
.nav{
    height:30px ;
    background-color: #d9d9d9;
    line-height: 30px;
    li{
        float: left;
        line-height: 30px;
        margin-right: 28px;
        position: relative;
        &:last-child{
            margin-right: 0;
        }
        &:hover{
            .lastmenu{
                display: block;
            }
        }
        // 二级菜单
        .lastmenu{
            position: absolute;
            left: 0;
            top: 30px;
            width: 150px;
            padding: 15px 0;
            background-color: #fff;
            display: none;
            z-index: 100;
            border: 1px solid #ccc;
            p{
                margin-bottom: 10px;
            }
        }
    }
}

// 头部区域
.header{
    height: 132px;
    background-color:#fff ;
    box-shadow: 1px 6px 5px #ccc;
    .top_search{
    margin-top: 20px;
    // 搜索区域
    .searchBox{
    width: 590px;
    height: 36px;
    border: 1px solid #dd302d;
    position: relative;

    input:nth-child(1){
        width: 511px;
        height: 36px;
        padding-left: 10px;
        box-sizing: border-box;
        float: left;
    }
    input:nth-child(2){
        width: 79px;
        height: 36px;
        background-color: #dd302d;
        float: left;
    }

    // 搜索图标
    .icon-icon-test1{
        position: absolute;
        top: 50%;
        right: 26px;
        font-size: 24px;
        margin-top: -12px;
        color: #fff;
    }
    }
    .search_car{
        width: 90px;
        height: 36px;
        border: 1px solid #dd302d;
        margin-left: 10px;
        line-height: 36px;
        color: #dd302d;
        font-size: 12px;
        padding: 0 6px;
        box-sizing: border-box;
    }
    }
    
    .hot_words{
    width: 500px;
    height: 17px;
    margin-top: 10px;
    li{
        float: left;
        font-size: 12px;
        margin-left: 8px;
        a{
            color: #999999;
        }
    }
    li:nth-child(1){
        margin-left: 0;
    }
    }

    .main_nav{
        width: 660px;
        height: 22px;
        margin-top: 20px;
        li{
            float: left;
            font-size: 16px;
            margin-left: 10px;
            a{
                color: #666666;
            }
        }
        li:nth-child(1){
            margin-left: 0;
        }
    }
}

// 主体区域
.page_body{
    // 广告区域
    .list_box{
    margin-top: 16px;
    .list{
        width: 190px;
        height: 458px;
        background-color: #FFFFFF;
        position: relative;
        box-sizing: border-box;
        ul{
            padding: 9px 0;
            li{
                font-size: 14px;
                height: 20px;
                line-height: 20px;
                margin-bottom: 8px;
                padding-left: 16px;
                box-sizing: border-box;
                position: relative;
                &:hover{
                    background-color: orangered;
                    .second_menu{
                        display: block;
                    }
                    // 鼠标样式
                    cursor: pointer;
                    a{
                        color: #fff;
                    }
                }
                a{
                    color: #333333;
                }
                .second_menu{
                    padding-top: 30px;
                    box-sizing: border-box;
                    width: 1000px;
                    height: 458px;
                    background-color:#fff;
                    position: absolute;
                    top: -9px;
                    left: 190px;
                    display: none;
                    z-index: 100;
                    li{
                        margin-bottom: 20px;
                        background-color: #fff;
                        margin-left: 20px;
                        a{
                            margin-left: 30px;
                            color: #999999;
                            &:hover{
                                color: #DD302D;
                            }
                        }
                    }
                }
            }
            li:nth-child(1){
                margin-top: 0;
            }
        }
    }

    // 中间图片
    .middle_show{
        position: relative;
        width: 590px;
        height: 458px;
        margin: 0 10px;
        .btn{
            position: absolute;
            left: 50%;
            margin-left: -60px;
            bottom: 20px;
            width: 120px;
            height: 20px;
            span{
                width: 20px;
                height: 20px;
                display: block;
                float: left;
                margin-right: 4px;
                border-radius: 50%;
                background-color:#ccc;
                &:nth-child(1){
                    background-color: orange;
                }
                &:hover{
                    background-color: orange;
                }
            }
        }
        
    }
    

    // 右侧图片
    .img{
        width: 190px;
        height: 458px;
        img:nth-child(2){
            margin: 10px 0;
        }
    }

    // 右侧登录
    .login{
        width: 190px;
        height: 458px;
        background-color: #FFFFFF;

        // 用户登录
        .top_login{
            width: 150px;
            height:84px ;
            margin: 20px 20px 16px 20px;
            border-bottom: 1px solid #ccc;
            .user{
                margin-bottom: 12px;
                position: relative;
                .user_login{
                margin-left: 10px;
                font-size: 12px;
                line-height: 24px;
                color: #333333;
                a:nth-child(3){
                    margin-left: 6px;
                }
                &::after{
                    content: '';
                    height: 16px;
                    width: 1px;
                    background-color: #333333;
                    display: block;
                    position: absolute;
                    top: 16px;
                    left: 74px;
                }
                    p{
                        font-size: 12px;
                        color: #666666;
                    }
                }
            }
            .vip{
                margin-bottom: 14px;
                span{
                    width: 64px;
                    height: 22px;
                    border-radius: 69px ;
                    background-color: #dd302d;
                    display: block;
                    float: left;
                    font-size: 12px;
                    text-align: center;
                    line-height: 22px;
                    color: #fff;
                    &:nth-child(2){
                        background-color: #363634;
                        color: #BEB482;
                        margin-left: 10px;
                    }
                }
            }
        }

        // 御马新闻
        .middle_news{
            width: 170px;
            height: 126px;
            margin: 0 auto;
            .title{
                margin-bottom: 10px;
                span:nth-child(2){
                    float: right;
                    display: block;
                    font-size: 12px;
                    color: #999999;
                }
                strong{
                    font-size: 14px;
                }
            }
            .news{
                font-size: 12px;
                margin-top:10px ;
                li{
                    height: 22px;
                    width: 170px;
                    margin-bottom: 4px;
                    span{
                        display: block;
                        width: 42px;
                        height: 22px;
                        text-align: center;
                        line-height: 22px;
                        font-size: 12px;
                        color: #DD302D;
                        background-color:#FFE7E7 ;
                        float: left;
                    }
                    p{
                        float: left;
                        width: 120px;
                        font-size: 12px;
                        // 文字溢出显示省略号
                        word-break: keep-all;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        padding-left: 6px;
                        box-sizing:border-box ;
                        line-height: 22px;
                    }
                }
            }
        }

        .buttom_nav{
            padding: 0 10px;
            margin-top: 16px;
            li{
                width: 36px;
                height: 46px;
                margin-right: 8px;
                margin-bottom: 18px;
                float: left;
                &:nth-child(4n){
                    margin-right: 0;
                }
                p{
                    font-size: 12px;
                    text-align: center;
                    margin-top: 2px;
                }
                span{
                    background:url(../../img/侧边栏图标_默认@1x.png) no-repeat -35px 0 ;
                    width: 28px;
                    height:28px ;
                    display: block;
                }
                &:nth-child(2) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -35px -42px;
                    }
                }
                &:nth-child(3) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat 2px -42px;
                    }
                }
                &:nth-child(4) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -73px -84px;
                    }
                }
                &:nth-child(5) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -111px 0px;
                    }
                }
                &:nth-child(6) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -70px -42px;
                    }
                }
                &:nth-child(7) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat 3px -84px;
                    }
                }
                &:nth-child(8) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -73px 0px;
                    }
                }
                &:nth-child(9) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat 2px 0px;
                    }
                }
                &:nth-child(10) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -111px -42px;
                    }
                }
                &:nth-child(11) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -109px -84px;
                    }
                }
                &:nth-child(12) {
                    span{
                        background: url(../../img/侧边栏图标_默认@1x.png) no-repeat -34px -84px;
                    }
                }

            }
        }
    }

    }

    // 秒杀区域
    .buy{
        margin-top: 10px;
        background-color: #fff;
        margin-bottom: 10px;
        .left_photo{
            width: 190px;
            height: 266px;
            background: url(../../img/Rectangle31@1x.png);
            font-size: 26px;
            color: #fff;
            text-align: center;
            padding-top: 30px;
            box-sizing: border-box;
        }
        .right_photo{
            width: 190px;
            height: 266px;
        }
        .milddle_goods{
            width: 790px;
            height: 266px;
            margin: 0 10px;
            .goods{
            width: 190px;
            height: 266px;
            margin-left: 10px;
            img{
                margin: 10px
            }
            &:nth-child(1){
                margin-left: 0;
            }
            p{
            width: 160px;
            height: 18px;
            word-break: keep-all;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 14px;
            margin-left: 17px;
            margin-top: 20px;
            &:nth-child(3){
                color: #DD302D;
                text-align: center;
                margin-left: 0;
                margin-top: 10px;
            }
            }
            }
        }
        
        
    }

    // 年货推荐
    .year_goods{
        width: 1270px;
        height: 555px;
        margin: 0 auto;
        background:url(../../img/年货推荐_背景@1x.png) no-repeat 4px 0;
        padding-top: 110px;
        box-sizing: border-box;
        .main_year{
            width: 1190px;
            height: 430px;
            margin-left: 40px;
            .year{
                width: 190px;
                height: 210px;
                background:url(../../img/年货产品背景框框@1x.png) no-repeat ;
                float: left;
                margin-right: 10px;
                margin-bottom: 10px;
                img{
                    margin-top: 16px;
                    margin-left: 40px;
                    margin-bottom: 10px;
                }
                .middle_frame{
                    background: url(../../img/年货产品_免息横幅@1x.png) no-repeat;
                    width: 190px;
                    height: 32px;
                    text-align: center;
                    line-height: 32px;
                    margin-bottom: 12px;
                    a{
                        color: #fff;
                        font-size: 14px;
                    }
                }
                .buttom_title{
                    margin: 0 auto;
                    width: 56px;
                    height: 20px;
                    a{
                        color: #DD302D;
                        font-size: 14px;
                    }
                }
                &:nth-child(6n){
                    margin-right: 0;
                }
            }
        }
    }

    // 每日推荐
    .recommend{
        height: 318px;
        margin-top: 10px;
        .tj{
            width: 590px;
            height: 318px;
            background-color: #fff;
            padding-left:  10px;
            box-sizing: border-box;
        }
        // 每日特价
        .left_sale{
            margin-right: 10px;
            .sale_title{
                width: 570px;
                height: 34px;
                margin-top: 10px;
                strong{
                    font-size: 24px;
                }
                .js{
                    margin-top: 14px;
                    a{
                    color: #DD302D;
                    font-size: 14px;
                    }
                }
                
            }

            .left_sa{
                width: 180px;
                height: 254px;
                background-color:#F8F8F8 ;
                margin-top: 10px;
                .image{
                    margin: 10px 35px;
                }
                p{
                    text-align: center;
                    margin-bottom: 14px;
                    &:nth-child(3) a{
                        font-size: 14px;
                    }
                    &:nth-child(4) a{
                        font-size: 16px;
                        color: #DD302D;
                    }
                    &:nth-child(5) {
                        font-size: 12px;
                        color: #CCCCCC;
                    }
                }
            }

            .right_sa{
            width: 390px;
            height: 254px;
            padding: 32px 0;
            box-sizing: border-box;
            // margin-left: 6px;
            .sale{
                width: 190px;
                height: 90px;
                float: left;
                margin-right: 10px;
                &:nth-child(2n){
                    margin-right: 0;
                }
                img{
                    float: left;
                    margin-right: 10px
                }
                p:nth-child(2){
                    margin-top: 10px;
                    a{
                        font-size: 12px;
                    }
                }
                p:nth-child(3){
                    margin: 10px 0;
                    a{
                        font-size: 14px;
                        color: #DD302D;
                    }
                }
                p:nth-child(4){
                    font-size: 12px;
                    color: #ccc;
                }
            }
            }
        }

        // 品牌闪购
        .right_brand{
            // margin-right: 10px;
            .sale_title{
                width: 570px;
                height: 34px;
                margin-top: 10px;
                strong{
                    font-size: 24px;
                }
                .js{
                    margin-top: 14px;
                    a{
                    color: #DD302D;
                    font-size: 14px;
                    }
                }
                
            }

            .left_sa{
                width: 180px;
                height: 254px;
                background-color:#F8F8F8 ;
                margin-top: 10px;
                .image{
                    margin: 10px 35px;
                }
                p{
                    text-align: center;
                    margin-bottom: 14px;
                    &:nth-child(3) a{
                        font-size: 14px;
                    }
                    &:nth-child(4) a{
                        font-size: 16px;
                        color: #DD302D;
                    }
                    &:nth-child(5) {
                        font-size: 12px;
                        color: #CCCCCC;
                    }
                }
            }

            .right_sa{
            width: 390px;
            height: 254px;
            padding: 32px 0;
            box-sizing: border-box;
            // margin-left: 6px;
            .sale{
                width: 190px;
                height: 90px;
                float: left;
                margin-right: 10px;
                &:nth-child(2n){
                    margin-right: 0;
                }
                img{
                    float: left;
                    margin-right: 10px
                }
                p:nth-child(2){
                    margin-top: 10px;
                    a{
                        font-size: 12px;
                    }
                }
                p:nth-child(3){
                    margin: 10px 0;
                    a{
                        font-size: 14px;
                        color: #DD302D;
                    }
                }
                p:nth-child(4){
                    font-size: 12px;
                    color: #ccc;
                }
            }
            }
        }

        
        
    }

    // 全球购
    .body_global{
        .box_title{
        height: 60px;
        margin-top: 20px;
        text-align: center;
        p{
            line-height: 60px;
            font-size: 28px;
        }
        }
        .global_purchase{
            height: 560px;
            
            .public{
                width: 290px;
                margin-right: 10px;
                &:last-child{
                    margin-right: 0;
                }
                .public_box{
                    width: 290px;
                    height: 180px;
                    background-color: #fff;
                    margin-top: 10px;
                    padding: 10px;
                    box-sizing: border-box;
                    img{
                        margin-top: 10px;
                    }
                    img:nth-child(2){
                        margin-right: 6px;
                    }
                    p{
                        a:nth-child(1){
                            color: #000000;
                            font-size: 14px;
                            margin-right: 10px;
                        }
                        a:nth-child(2){
                            font-size: 12px;
                            color: #ccc;
                        }
                    }
                }
            }
            .global3{
                .public_box:first-child{
                    margin-top: 0;
                }
            }
            .global4{
                .public_box:first-child{
                    margin-top: 0;
                }
            }
        }
    }
    

    // 为你推荐
    .body_user{
        .box_title2{
        height: 60px;
        margin-top: 30px;
        text-align: center;
        p{
            line-height: 60px;
            font-size: 28px;
        }
        }
        // 导航区域
        .user_nav{
            height: 80px;
            background-color: #fff;
            margin: 10px 0;
            padding: 0 55px;
            box-sizing: border-box;
            .nav_public{
                width: 180px;
                height: 80px;
                padding: 22px 0;
                box-sizing: border-box;
                text-align: center;
                a{
                    display: block;
                    &:nth-child(1){
                        width: 68px;
                        height: 20px;
                        text-align: center;
                        line-height: 20px;
                        margin: 0 56px;
                        margin-bottom: 4px;
                        font-size: 14px;
                    }
                    &:nth-child(2){
                        font-size: 12px;
                        color: #ccc;
                    }
                    &:nth-child(1):hover{
                        background-color: #DD302D;
                        border-radius: 20px;
                        color: #fff;  
                    }
                    &:nth-child(2):hover{
                        color: #DD302D;
                    }
                }
            }
        }
        // 主体部分
        .user_purchase{
            .public_user{
                width: 230px;
                height: 322px;
                background-color: #fff;
                margin-right: 10px;
                margin-bottom: 10px;
                float: left;
                padding: 40px 20px 0;
                box-sizing: border-box;
                &:nth-child(5n){
                    margin-right: 0;
                }
                img{
                    margin: 0 20px 20px;
                }
                p:nth-child(2){
                    height: 40px;
                    margin-bottom: 10px;
                    span{
                        display: block;
                        width: 29px;
                        height: 17px;
                        background-color: #DD302D;
                        border-radius: 2px;
                        text-align: center;
                        font-size: 12px;
                        line-height: 17px;
                        color: #fff;
                        float: left;
                    }
                    a{
                        font-size: 14px;
                        line-height: normal;
                    }
                }
                p:nth-child(3){
                    height: 26px;
                    font-size: 18px;
                    color: #DD302D;
                }
            }
        }
    }
    
}

// 底部内容
.footer{
    height: 482px;
    background-color: #483E3E;
    .main_foot{
        height: 382px;

        // 底部导航
        .foot_nav{
            border-bottom: 1px solid #584D4D;
            margin-bottom: 20px;
            .nav_list{
                width: 190px;
                height: 200px;
                margin-right: 10px;
                a{
                    color: #fff;
                }
                dt{
                    font-size: 16px;
                }
                dd{
                    margin-left: 0;
                    font-size: 12px;
                    margin-top: 10px;
                }
            }
            .nav_right{
                width: 190px;
                height: 200px;
                a{
                    color: #fff;
                }
                dt{
                    font-size: 16px;
                }
                dd{
                    margin-left: 0;
                    font-size: 12px;
                    margin-top: 10px;
                }
            }
        }

        // 底部链接
        .connection_foot{
            width: 990px;
            height: 24px;
            margin: 0 auto;
            margin-bottom: 20px;
            li{
                float: left;
                margin-left: 10px;
                width: 90px;
                height: 24px;
                text-align: center;
                line-height: 24px;
                a{
                    color: #fff;
                    font-size: 12px;
                }
                &:nth-child(1){
                    margin-left: 0;
                }
            }
        }

        // 出处
        .source{
            width: 190px;
            height: 24px;
            margin: 0 auto;
            color: #fff;
            line-height: 24px;
            text-align: center;
            font-size: 12px;
        }
    }
}

